'use strict';
const log = require('npmlog')

// 定义log日志输出的级别
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'
// 修改前缀
log.heading = 'pk-lsj';

// 成功的打印 添加自定义命令
log.addLevel('success', 2000, { fg: 'green', bold: true });


module.exports = log;
